/**
*
* @ author:cmd
* @ wechat:codercmd@qq.com
* @ data: 2020-03-03 19:20
*/
export default class win_over extends Laya.Script {
    /** @prop {name:btn_over, tips:"按键位置", type:Node, default:1000}*/
    public btn_over:Laya.Node = null;

    /** @prop {name:btn_close, tips:"按键位置", type:Node, default:1000}*/
    public btn_close:Laya.Node = null;

    constructor() {
        super();       
        
    }

    onStart(){
        
    }

    onEnable(){
        orc.log(this.btn_over)
        this.btn_over.on(Laya.Event.CLICK,this,this.btn_over_click.bind(this));    

        this.btn_close.on(Laya.Event.CLICK,this,this.btn_close_click.bind(this));    
    }

    btn_over_click(){
        orc.log('over')
    }

    btn_close_click(){
        this.owner.destroy();
    }

    onAwake() {
    }
}